package community.hospital.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Size;

/**
 * 
 * @TableName menu
 */
@TableName(value ="menu")
@Data
public class Menu implements Serializable {
    /**
     * 权限id
     */
    @TableId
    private Long id;

    /**
     * 权限码
     */
    private String menuKey;

    /**
     * 
     */
    private Long pid;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 修改时间
     */
    private Date gmtModifies;

    /**
     * 状态
     */
    private Integer state;

    private String description;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}